//应用的入口文件，负责渲染 React 组件到 DOM 中

import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import Counts from './learning/Counts';
import reportWebVitals from './reportWebVitals';


function Hello(props) {
    return <h1>Hello {props.name}!</h1>
}

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <React.StrictMode>
        <Hello name='OK'></Hello>
        {/*<App />*/}
        <Counts />
    </React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();



//function Hello(props) {
//    return <h1>Hello {props.name}!</h1>
//}

//const root1 = ReactDOM.createRoot(document.getElementById('root'))
//root1.render(<Hello name='OK'></Hello>)